import request from '@/utils/request'

// 查询订单列表
export function listPlatOrderPre(query) {
  return request({
    url: '/bus/platOrderPre/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getPlatOrderPre(id) {
  return request({
    url: '/bus/platOrderPre/' + id,
    method: 'get'
  })
}

// 新增订单
export function addPlatOrderPre(data) {
  return request({
    url: '/bus/platOrderPre',
    method: 'post',
    data: data
  })
}

// 修改订单管理
export function updatePlatOrderPre(data) {
  return request({
    url: '/bus/platOrderPre',
    method: 'put',
    data: data
  })
}

// 删除订单管理
export function delPlatOrderPre(id) {
  return request({
    url: '/bus/platOrderPre/' + id,
    method: 'delete'
  })
}

// 乘车订单统计
export function getRideOrderStatistic(params) {
  return request({
    url: '/bus/platOrderPre/getPlatUserInfoOrderSummaryResult',
    method: 'get',
    params: params
  })
}

// 异常订单重推
export function pushOrder(id) {
  return request({
    url: '/bus/platOrderPre/reSend/' + id,
    method: 'get'
  })
}